\documentclass[../libro.tex]{subfiles}

\begin{document}

\ifSubfilesClassLoaded{\frontmatter}{}

\pagenumbering{roman}
\pdfbookmark{\contentsname}{toc}
\tableofcontents

\end{document}

This is just the table of contents.
